import 'package:yb_zsyiji_androidflutter_pro/YBNetWorkModule/YBAPi/YBAPi.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBNetWorkModule/YBAPi/YBHttpUtils.dart';

class YBLoginInfoApi {

  ///密码登录
  static void loginInPassWord<T>(parameters, {Success success, Fail fail}){
    YBHttpUtils.POSTRequest(YBApi.loginIn, parameters,success: success,fail: fail);
  }

  ///登录验证码
  static void loginInMsgCode<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.getRequest(YBApi.loginMsgCode, parameters,success: success,fail: fail);
  }

  ///手机号码登录
  static void loginInPhone<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.POSTRequest(YBApi.loginphone, parameters,success: success,fail: fail);
  }

  ///微信登录
  static void loginInWxChat<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.post(YBApi.loginWxChat, parameters,success: success,fail: fail);
  }

  ///绑定手机号码
  static void loginInFirstPhone<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.POSTRequest(YBApi.loginFirstPhone, parameters,success: success,fail: fail);
  }

  ///绑定apple登录
  static void loginInApplePhoneData<T>(parameters,{Success success, Fail fail}){
    YBHttpUtils.POSTRequest(YBApi.appleLoginApi, parameters,success: success,fail: fail);
  }


}